package com.itheima.stock.remotedata;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.itheima.stock.job.service.StockTimerService;
import com.itheima.util.HttpUtils;
import org.apache.http.HttpResponse;
import org.apache.http.util.EntityUtils;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@SpringBootTest
public class PullRemoteData2 {

    @Autowired
    private StockTimerService stockTimerService;

    @Test
    public void test01() throws ParseException {
        stockTimerService.insertBatch();
    }

    @Test
    public void test2() throws ParseException {
        stockTimerService.insertBatchRt();
    }

    @Test
    public void test3() {
        stockTimerService.getStockSectorRtIndex();
    }



}
